@echo off

if not exist output (
	md output
)
del output\*.* /q

copy /y Alkaline.g output\ >nul
copy /y js\*.js output\ >nul
copy /y js\processing\*.js output\ >nul
copy /y js\runtime\*.js output\ >nul
copy /y modules\*.js output\ >nul

set runJs=cscript //nologo
if exist jsdb set runJs=jsdb\jsdb


%runJs% etc/run_script.js etc/setMode JS


cd output

if exist *Test* del *Test* >nul

SET CLASSPATH=C:\antlr\nightly.jar;.

echo Making debug build...

java org.antlr.Tool Alkaline.g

echo Done.

cd ..

if /I "%1" == "nopause" goto endit

pause

:endit
